package com.settlement.system.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.settlement.system.common.base.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
* <p>
* oms订单表
* </p>
*
* @author huangrensen
* @since 2024-08-02
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
public class OdsOmsRetailSalesOrderMain implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
    * 订单号
    */
    private String orderSn;


    /**
    * 交易号
    */
    private String dealCode;


    /**
    * 来源类型
    */
    private Long lylx;


    /**
    * 商店id
    */
    private Long sdId;


    /**
    * 订单状态
    */
    private Long orderStatus;


    /**
    * 订单配送状态
    */
    private Long shippingStatus;


    /**
    * 订单支付状态
    */
    private Long payStatus;


    /**
    * 快递编码
    */
    private String shippingCode;


    /**
    * 快递名称
    */
    private String shippingName;


    /**
    * 快递单号
    */
    private String shippingSn;


    /**
    * 快递费用
    */
    private BigDecimal shippingFee;


    /**
    * 服务订单总费用
    */
    private BigDecimal serviceOrderFee;


    /**
    * 订单总金额
    */
    private BigDecimal totalAmount;


    /**
    * 已付金额
    */
    private BigDecimal payment;


    /**
    * 应付金额
    */
    private Long orderAmount;


    /**
    * 是否被拆分
    */
    private Integer isSplit;


    /**
    * 是否拆分子单
    */
    private Integer isSplitNew;


    /**
    * 是否被合并
    */
    private Integer isCombine;


    /**
    * 是否合并新单
    */
    private Integer isCombineNew;


    /**
    * 是否复制单
    */
    private Integer isCopy;


    /**
    * 是否换货单
    */
    private Integer isHh;


    /**
    * 订单备注
    */
    private String orderMsg;


    /**
    * 商家留言
    */
    private String sellerMsg;


    /**
    * 卖家备注旗帜
    */
    private String sellerFlag;


    /**
    * 买家留言
    */
    private String buyMsg;


    /**
    * 收货人昵称
    */
    private String userName;


    /**
    * 收货姓名
    */
    private String receiverName;


    /**
    * 收货地址
    */
    private String receiverAddress;


    /**
    * 收货电话
    */
    private String receiverTel;


    /**
    * 收货手机号
    */
    private String receiverMobile;


    /**
    * 总重量(单位KG)
    */
    private Long weigh;


    /**
    * 下单时间
    */
    private LocalDateTime addTime;


    /**
    * 支付时间
    */
    private LocalDateTime payTime;


    /**
    * 发货时间
    */
    private LocalDateTime shippingTimeFh;


    /**
    * 出库时间
    */
    private LocalDateTime shippingTimeCk;


    private String lastchanged;


    /**
    * 订单商品折让
    */
    private Long discountFee;


    /**
    * 订单其他折让(整单折让)
    */
    private Long otherDiscountFee;


    /**
    * 客户确认收货（完成）时间戳
    */
    private Long completeTime;


    /**
    * 转单时间
    */
    private LocalDateTime transTime;


    /**
    * 推送时间
    */
    private LocalDateTime syncTime;


    private String userId;


    /**
    * 确认时间
    */
    private LocalDateTime confirmTime;


    /**
    * 通知配货时间
    */
    private LocalDateTime shippingTimeTzph;


    /**
    * 是否挂起
    */
    private Integer isHandup;


    private String oaid;


    private Integer isShougong;


    /**
    * 仓库留言
    */
    private String storageMessage;


    private String tmHhId;


    /**
    * 收货地址省
    */
    private String receiverProvinceName;


    /**
    * 收货地址市
    */
    private String receiverCityName;


    /**
    * 收货地址区
    */
    private String receiverDistrictName;


    /**
    * 淘宝分销采购单号
    */
    private String tbfxId;


    private String o2oGuideId;


    private String o2oShopId;


    /**
    * 店铺代码
    */
    private Long sdCode;


    /**
    * 店铺名称
    */
    private Long sdName;


    /**
    * 发货仓库代码
    */
    private Long fhck;


    /**
    * 仓库名称
    */
    private Long fhckmc;


    /**
    * 渠道代码
    */
    private Long qdCode;


    /**
    * 渠道名称
    */
    private Long qdName;


    /**
    * 订单变动时间
    */
    private LocalDateTime lastUpdate;


    private Integer isElectronic;


    /**
    * 订单确认人
    */
    private String orderQrr;


    private String i4;


    /**
    * 换货原始交易号
    */
    private String oriDealCode;


    /**
    * 换货原始订单号
    */
    private String oriOrderSn;


    /**
    * 支付流水号
    */
    private String paySn;


    private Integer orderCustomType;


    private String kfOrderId;


    private String kfOrderIdName;


    private String kfOrderIdCode;


    private String kfXsId;


    private String kfXsIdName;


    private String kfXsIdCode;


    private Integer invoiceCount;


    private Integer invoiceAmount;


    private Integer invoiceType;


    private String invoiceNumber;


    private String invoiceTitle;


    private String invoicePay;


    private String invoiceContent;


    private String invoicePhone;


    private String invoiceAddr;


    private String invoiceAccount;


    private String invoiceBank;


    private String invoiceTaxNo;


    private Integer totalFxsPrice;


    private String tagsName;


    /**
    * WMS回传E3发货状态（0：未处理，1：成功，2：失败）
    */
    private Integer wmsSyncStatus;


    private String hhdjyh;

}
